/**
    File        : EditAccountDlg.h
    Description : Dialog class for creating / editing accounts
    Author      : Raymond Marsh
    Created     : 08/01/2009
    Copyright 2009, 2010, 2011, 2012 Raymond Marsh

    This program is distributed under the terms of the GNU General Public License.
    To view a copy of the license see the file 'copying.txt'

    This file is part of the MyMoney Suite.

    MyMoney is free software: you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software Foundation, either
    version 3 of the License, or (at your option) any later version.

    MyMoney is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along with MyMoney.
    If not, see <http://www.gnu.org/licenses/>.
**/

#ifndef EDITACCOUNTDLG_H
#define EDITACCOUNTDLG_H

//(*Headers(CEditAccountDlg)
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/datectrl.h>
#include <wx/statline.h>
#include <wx/dateevt.h>
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/combobox.h>
//*)

//(* wxWidgets includes
#include <wx/valnum.h>
#include <wx/valtext.h>
//*)

//(* C/C++ includes
//*)

//(* other includes
#include "ValPhone.h"
#include "ValDateTime.h"
#include "../common/stdafx.h"
#include "ErrorLog.h"
#include "Data.h"
//*)

//(* defines
//*)

//(* constants
//*)

class CEditAccountDlg: public wxDialog
{
	public:

		CEditAccountDlg(wxWindow* parent, SAccountInfo& pAccountInfo, wxArrayString& AccountTypes, bool CanEdit = true, bool IsNewAccount = false);
		virtual ~CEditAccountDlg();

		//(*Declarations(CEditAccountDlg)
		wxStaticText* StaticText10;
		wxStaticText* StaticText9;
		wxTextCtrl* TextCtrl4;
		wxDatePickerCtrl* DatePickerCtrl2;
		wxDatePickerCtrl* DatePickerCtrl1;
		wxStaticText* StaticText2;
		wxButton* Button1;
		wxStaticText* StaticText6;
		wxTextCtrl* TextCtrl6;
		wxStaticText* StaticText8;
		wxStaticText* StaticText11;
		wxStaticText* StaticText1;
		wxStaticText* StaticText3;
		wxButton* Button2;
		wxStaticText* StaticText5;
		wxStaticText* StaticText7;
		wxStaticLine* StaticLine1;
		wxTextCtrl* TextCtrl8;
		wxTextCtrl* TextCtrl2;
		wxComboBox* ComboBox1;
		wxTextCtrl* TextCtrl7;
		wxTextCtrl* TextCtrl1;
		wxStaticText* StaticText12;
		wxTextCtrl* TextCtrl5;
		wxStaticText* StaticText4;
		wxTextCtrl* TextCtrl3;
		//*)

	protected:

		//(*Identifiers(CEditAccountDlg)
		//*)

	private:

		//(*Handlers(CEditAccountDlg)
		void OnBtnOKClick(wxCommandEvent& event);
		void OnBtnCancelClick(wxCommandEvent& event);
		//*)
        bool            m_IsNewAccount;
        bool            m_CanEdit;

		DECLARE_EVENT_TABLE()
};

#endif
